/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package iketest;

import java.util.Date;

/**
 *
 * @author Pouja
 */
public class Song {
    private Date date;
    private String songName;
    private String artistName;
    
    public Song(Date date, String songName, String artistName){
        this.date=date;
        this.songName=songName;
        this.artistName=artistName;
    }
    
    public Date date(){
        return this.date;
    }
    
    public String toJSON(){
        String out="{\"songName\":\""+songName+"\",\"artistName\":\""+artistName+"\"}";
        return out;
    }
}
